package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 日报对象 admin_daliy
 * 
 * @author ruoyi
 * @date 2020-12-31
 */
public class AdminDaliy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * 工作任务
     */
    private List<AdminDaliyTask> daliyTask;

    /** 日报id */
    private Long daliyId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户name*/
    @Excel(name = "用户id")
    private String userName;
    /**
     * 工作组名称
     */
    @Excel(name = "工作组名称")
    private String deptName;

    /** 产品/项目name */
    @Excel(name = "产品/项目name")
    private String productName;

    /** 产品id/项目id */
    @Excel(name = "产品id/项目id")
    private Long productId;

    /** 0.产品/1.项目 */
    @Excel(name = "0.产品/1.项目")
    private Long productType;

    /** 实际工作时长 */
    @Excel(name = "实际工作时长")
    private Integer workTime;

    /** 提交代码量 */
    @Excel(name = "提交代码量")
    private Integer codeAmount;

    /** 日报日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日报日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date daliyDate;

    /** 任务编号 */
    @Excel(name = "任务编号")
    private String taskNumber;

    /** 工作内容 */
    @Excel(name = "工作内容")
    private String taskContent;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long orderNum;

    /** 日报状态（0正常 1停用） */
    @Excel(name = "日报状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public Long getDaliyId() {
        return daliyId;
    }

    public void setDaliyId(Long daliyId) {
        this.daliyId = daliyId;
    }

    public List<AdminDaliyTask> getDaliyTask() {
        return daliyTask;
    }

    public void setDaliyTask(List<AdminDaliyTask> daliyTask) {
        this.daliyTask = daliyTask;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setProductType(Long productType) 
    {
        this.productType = productType;
    }

    public Long getProductType() 
    {
        return productType;
    }

    public void setDaliyDate(Date daliyDate) 
    {
        this.daliyDate = daliyDate;
    }

    public Date getDaliyDate() 
    {
        return daliyDate;
    }
    public void setTaskNumber(String taskNumber) 
    {
        this.taskNumber = taskNumber;
    }

    public String getTaskNumber() 
    {
        return taskNumber;
    }
    public void setTaskContent(String taskContent) 
    {
        this.taskContent = taskContent;
    }

    public String getTaskContent() 
    {
        return taskContent;
    }
    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }
    public void setOrderNum(Long orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Long getOrderNum() 
    {
        return orderNum;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Integer getWorkTime() {
        return workTime;
    }

    public void setWorkTime(Integer workTime) {
        this.workTime = workTime;
    }

    public Integer getCodeAmount() {
        return codeAmount;
    }

    public void setCodeAmount(Integer codeAmount) {
        this.codeAmount = codeAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("daliyId", getDaliyId())
            .append("userId", getUserId())
            .append("productId", getProductId())
            .append("productType", getProductType())
            .append("workTime", getWorkTime())
            .append("codeAmount", getCodeAmount())
            .append("daliyDate", getDaliyDate())
            .append("taskNumber", getTaskNumber())
            .append("taskContent", getTaskContent())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("modifyTime", getModifyTime())
            .append("orderNum", getOrderNum())
            .append("status", getStatus())
            .toString();
    }
}
